package com.sugon.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * APP首页菜单grid明细DTO
 *
 * @author YuXD
 * @since 2021-11-19
 */
@NoArgsConstructor
@Data
public class AppIndexMenuGridItemDTO implements Serializable {

    private String gridText;

    private String iconClass;

    /**
     * 角标数
     */
    private Integer badgeCount;

    /**
     * 跳转路径
     */
    private String navUrl;

    /**
     * 可以查看的部门列表
     */
    @JsonIgnore
    private List<String> deptCodeList;

    /**
     * 可以查看的角色ID列表
     */
    @JsonIgnore
    private List<String> roleIdList;

    public AppIndexMenuGridItemDTO(String gridText, String iconClass, Integer badgeCount, String navUrl, List<String> deptCodeList, List<String> roleIdList) {
        this.gridText = gridText;
        this.iconClass = iconClass;
        this.badgeCount = badgeCount;
        this.navUrl = navUrl;
        this.deptCodeList = deptCodeList;
        this.roleIdList = roleIdList;
    }
}
